xmlwriter
A simple, streaming, partially-validating XML writer that writes XML data into an internal buffer.
Features
- A simple, bare-minimum, panic-based API.
- Non-allocating API. All methods are accepting either
fmt::Display
orfmt::Arguments
. - Nodes auto-closing.
Example
use *;
let opt = Options ;
let mut w = new;
w.start_element;
w.write_attribute;
w.write_attribute_fmt;
w.start_element;
// We can write any object that implements `fmt::Display`.
w.write_attribute;
w.write_attribute;
w.write_text_fmt;
assert_eq!;
License
MIT